package cn.edu.scau.cmi.liangzijian.builder;

public class Manager {
	private Chef chef = null;
	
	public Manager(Chef chef) {
		this.chef = chef;
	}
	
	public void setChef(Chef chef) {
		this.chef = chef;
	}

	public Pizza construct() {
		chef.makePart1();
		chef.makePart2();
		chef.makePart3();
		
		return chef.getPizza();
	}
}
